

import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

public class ControlProva implements ActionListener{
    Banco banco = new Banco();
    JPanel principal;
    FormProva prova;
    FormResolucao resol;

    @Override
    public void actionPerformed(ActionEvent ae) {
        int n = prova.getTamanho();
        resol.nova(n);
        CardLayout cl = (CardLayout)(principal.getLayout());
        for(int i=0;i<n;i++){
            resol.setResposta(i, prova.corrige(i));
        }
        cl.next(principal);
    }

    void setPrincipal(JPanel principal) {
        this.principal = principal;
    }

    void setForm(FormProva prova, FormResolucao resol) {
        this.prova = prova;
        this.resol = resol;
    }
    
    
    
    
    final static String A = "a";
    final static String B = "b";
    final static String C = "c";
    final static String D = "d";
    final static String E = "e";
}
